* OPA335 SPICE Macro-model 
*          
*   Rev. A    5 February 2003, by W.K. Sands
*
*   Rev. B    5 March 2003 By Neil Albaugh: ADDED HEADER TEXT & EDITED TEXT
*
*	This macromodel has been optimized to model the AC, DC, and transient response performance within 
*     the device data sheet specified limits. 
*     Correct operation of this macromodel has been verified on MicroSim P-Spice ver. 8.0 and on 
*     PENZAR Development TopSPICE ver. 6.82d. For help with other analog simulation software, 
*     please consult your software supplier. 
*
*  
*   Copyright 2003 by Texas Instruments Corporation
*
* BEGIN MODEL OPA335
*
* PINOUT ORDER +IN -IN +V -V OUT
* PINOUT ORDER  3   4   6  2  1
*
.SUBCKT OPA335 3 4 6 2 1
*
* BEGIN NOTES
* FOR MORE ACCURATE VOLTAGES YOU MAY WANT TO USE VNTOL=1E-7 AND / OR RELTOL=0.0001
*
* MODEL TEMPERATURE RANGE IS -40 C TO +125 C, NOT ALL PARAMETERS ACCURATELY TRACK THOSE OF AN ACTUAL OPA335 
* OVER THE FULL TEMPERATURE RANGE
*
* END NOTES
*
* BEGIN MODELED FEATURES
*
* OPEN LOOP GAIN AND PHASE
* INPUT OFFSET VOLTAGE
* INPUT OFFSET VOLTAGE
* TEMPERATURE COEFFICIENT
* INPUT VOLTAGE NOISE
* INPUT CURRENT NOISE
* INPUT BIAS CURRENT
* INPUT CAPACITANCE
* INPUT COMMON MODE VOLTAGE RANGE
* INPUT CLAMPS TO RAILS
* CMRR WITH FREQUENCY EFFECTS
* PSRR WITH FREQUENCY EFFECTS
* SLEW RATE
* QUIESCENT CURRENT
* QUIESCENT CURRENT VS VOLTAGE
* QUIESCENT CURRENT VS TEMPERATURE
* RAIL TO RAIL OUTPUT STAGE
* HIGH CLOAD EFFECTS
* CLASS AB BIAS IN OUTPUT STAGE
* OUTPUT CURRENT THROUGH SUPPLIES
* OUTPUT CURRENT LIMITING
* OUTPUT CLAMPS TO RAILS
* OUTPUT SWING VS OUTPUT CURRENT
* OUTPUT WILL SWING SLIGHTLY BELOW -V W EXTERNAL PULLDOWN TO A SUPPLY MORE NEGATIVE THAN -V
*
* END FEATURES
*
*
Q21 7 8 9 QNL
R77 10 11 2
R78 12 11 2
R79 13 8 100
R80 14 15 100
R81 16 6 1
R82 2 17 1
R84 18 19 700
R85 20 21 1
R86 9 22 1
D21 1 6 DD
D22 2 1 DD
D23 23 0 DIN
D24 24 0 DIN
I24 0 23 0.1E-3
I25 0 24 0.1E-3
E25 9 0 2 0 1
E26 21 0 6 0 1
D25 25 0 DVN
D26 26 0 DVN
I26 0 25 0.1E-3
I27 0 26 0.1E-3
E27 27 4 25 26 0.1
G13 28 4 23 24 1E-5
E28 29 0 21 0 1
E29 30 0 9 0 1
E30 31 0 32 33 1
R88 29 34 1E6
R89 30 35 1E6
R90 31 36 1E6
R91 0 34 100
R92 0 35 100
R93 0 36 100
E31 37 3 36 0 9.5E-4
R94 38 32 1E3
R95 32 39 1E3
C29 29 34 0.2E-12
C30 30 35 0.2E-12
C31 31 36 6E-9
E32 40 37 35 0 0.004
E33 41 40 34 0 -0.002
E34 33 9 21 9 0.5
D27 42 21 DD
D28 9 42 DD
M24 43 44 17 17 NOUT L=3U W=4000U
M25 45 46 16 16 POUT L=3U W=4000U
M26 47 47 20 20 POUT L=3U W=4000U
M27 48 49 10 10 PIN L=3U W=40U
M28 50 51 12 12 PIN L=3U W=40U
M29 52 52 22 22 NOUT L=3U W=4000U
R96 53 46 100
R97 54 44 100
G14 42 33 55 33 0.2E-3
R98 33 42 60E6
C32 19 1 27E-12
R99 9 48 6K
R100 9 50 6K
C33 48 50 3E-12
C34 28 0 1E-12
C35 27 0 1E-12
C36 1 0 1E-12
D29 44 7 DD
D30 56 46 DD
Q22 56 14 21 QPL
V27 28 57 -1.9U
M33 58 59 21 21 PIN L=6U W=500U
E35 39 0 28 0 1
E36 38 0 4 0 1
M36 59 59 21 21 PIN L=6U W=500U
V30 58 11 0.8
R105 1 45 40
R106 43 1 22
J5 60 28 60 JC
J6 60 27 60 JC
J7 27 61 27 JC
J8 28 61 28 JC
E38 62 33 50 48 1
R108 62 55 10E3
C40 55 33 1.5E-12
G16 63 33 42 33 -1E-3
G17 33 64 42 33 1E-3
G18 33 65 52 9 1E-3
G19 66 33 21 47 1E-3
D31 66 63 DD
D32 64 65 DD
R110 63 66 100E6
R111 65 64 100E6
R112 66 21 1E3
R113 9 65 1E3
E39 21 53 21 66 1
E40 54 9 65 9 1
R114 64 33 1E6
R115 65 33 1E6
R116 33 66 1E6
R117 33 63 1E6
R118 2 6 250E6
G20 6 2 67 0 -380E-6
D33 68 0 DD
R119 0 67 1E9
I32 28 0 75E-12
I33 27 0 75E-12
C45 69 27 0.1E-12
C46 69 28 0.1E-12
R122 0 69 220
E41 69 0 23 24 210
V45 21 60 0.2
V46 61 9 0.2
E42 6 15 6 16 1
E43 13 2 17 2 1
M37 33 70 42 42 PSW L=1.5U W=15U
M38 42 71 33 33 NSW L=1.5U W=15U
E46 72 42 73 0 2
E47 74 33 73 0 -2
V47 71 74 1
V48 70 72 -1
R125 72 0 1E12
R126 74 0 1E12
G5 59 9 73 0 37.5E-6
G21 47 52 73 0 20E-6
G22 6 2 73 0 240E-6
G23 68 0 73 0 -1E-3
R128 0 68 10E3
I34 6 2 0.8E-6
E48 67 68 73 0 -0.65
E49 73 0 76 0 0.1
M39 77 78 9 9 NS1 L=3U W=10U
R129 77 79 10E6
M40 80 77 81 81 NS2 L=3U W=2000U
V50 79 9 10
R131 9 82 30E3
M41 83 83 79 79 PS1 L=6U W=500U
M42 80 83 79 79 PS1 L=6U W=500U
R132 84 83 900E3
M43 84 85 9 9 NS2 L=3U W=200U
E50 85 9 21 9 0.5
C47 80 9 20E-12
V51 81 82 -89E-3
M44 86 80 9 9 NS3 L=3U W=20000U
R133 86 79 10E3
E51 87 0 86 9 -1
V52 76 87 10.0
E52 88 41 89 0 1E-3
M46 90 78 9 9 NS1 L=3U W=10U
R134 90 91 10E6
M47 92 90 93 93 NS2 L=3U W=2000U
V53 91 9 10
R135 9 94 90K
M48 95 95 91 91 PS1 L=6U W=500U
M49 92 95 91 91 PS1 L=6U W=500U
R136 96 95 9E6
M50 96 97 9 9 NS2 L=3U W=200U
E54 97 9 21 9 0.5
C48 92 9 30E-12
V54 93 94 -89E-3
M51 98 92 9 9 NS3 L=3U W=20000U
R137 98 91 100E3
E55 89 0 98 9 1
R138 0 89 1E3
E56 28 88 99 0 -20E-6
D51 100 0 DD
R139 0 99 1E9
R140 0 100 1E9
V55 100 99 0.65
I35 0 100 1E-3
R141 57 49 84E3
R142 51 27 84E3
C49 28 27 1E-12
R143 87 0 1E12
R144 73 0 1E12
R145 9 78 1.5E11
C50 5 0 2E-12
J9 21 78 21 JE
J10 78 9 78 JE
R146 5 78 200
R147 78 21 1.4E10
H3 101 33 V43 -2.5K
D52 42 101 DD
D53 101 42 DD
V43 42 18 0
R148 76 0 1E12
.MODEL JC NJF IS=1E-18
.MODEL JE NJF IS=1E-17
.MODEL DVN D KF=7E-18 IS=1E-16
.MODEL DIN D
.MODEL DD D
.MODEL QPL PNP
.MODEL QNL NPN
.MODEL POUT PMOS KP=200U VTO=-0.7
.MODEL NOUT NMOS KP=200U VTO=0.7
.MODEL PIN PMOS KP=200U VTO=-0.7
.MODEL NIN NMOS KP=200U VTO=0.7
.MODEL PSW PMOS KP=200U VTO=-0.5 IS=1E-18
.MODEL NSW NMOS KP=200U VTO=0.5 IS=1E-18
.MODEL NS1 NMOS KP=200U VTO=0.8 IS=1E-18
.MODEL NS2 NMOS KP=200U VTO=1 IS=1E-18
.MODEL NS3 NMOS KP=200U VTO=5 IS=1E-18
.MODEL PS1 PMOS KP=200U VTO=-1 IS=1E-18
.ENDS
* END MODEL OPA335
